#include "TwApplicationPCH.h"
#include "TwNameGenerator.h"
#include <sstream>

TwImplementSingleton(TwNameGenerator);

TwNameGenerator::TwNameGenerator()
: mNodeUniqueID(0)
, mMovableObjectUniqueID(0)
{

}

TwNameGenerator::~TwNameGenerator()
{

}

std::string TwNameGenerator::generateNodeName()
{
	std::stringstream ss;
	ss << "__Node_" << mNodeUniqueID++ << "__";
	std::string name = ss.str();

	return name;
}

std::string TwNameGenerator::generateMovableObjectName()
{
	std::stringstream ss;
	ss << "__MovableObject_" << mMovableObjectUniqueID++ << "__";
	std::string name = ss.str();

	return name;
}
